/*
 * @Description:
 * @Author: Rfan
 * @Date: 2022-06-01 20:06:40
 * @LastEditTime: 2022-06-23 11:06:02
 */

import { ILevel } from '@/interfaces/archiveType';
import { useArrangementContext } from '../contexts/ArrangementContext';
import RecordLevelTable from './RecordLevelTableWrap';

const LevelWrap = () => {
  const { selectFondId, selectATId, selectAT } = useArrangementContext();
  console.log('scattered LevelWrap', { selectFondId, selectATId, selectAT });
  return (
    <>
      {selectATId > 0 && (
        <RecordLevelTable
          fondId={selectFondId}
          atItem={selectAT}
          level={selectAT?.levelList?.[0] || {}}
        />
      )}
    </>
  );
};

export default LevelWrap;
